* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Arial', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f5f5f5;
    color: #333;
}

.container {
    width: 90%;
    max-width: 600px;
    text-align: center;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

h1 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.instruction {
    margin-bottom: 20px;
    font-size: 18px;
}

.green-text {
    color: #2ecc71;
    font-weight: bold;
}

.blue-text {
    color: #1E90FF;
    font-weight: bold;
}

.game-area {
    width: 100%;
    height: 250px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    margin-bottom: 20px;
    transition: background-color 0.1s;
    font-size: 20px;
    position: relative;
}

.waiting {
    background-color: #3498db;
    color: white;
}

.ready {
    background-color: #e74c3c;
    color: white;
}

.go {
    background-color: #2ecc71;
    color: white;
}

.too-soon {
    background-color: #e67e22;
    color: white;
}

.stats {
    margin: 20px 0;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
    font-size: 18px;
}

.stats p {
    margin: 8px 0;
}

#reset-btn {
    padding: 10px 20px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

#reset-btn:hover {
    background-color: #2980b9;
}

.hidden {
    display: none;
}

#result-container {
    margin-top: 15px;
    font-size: 18px;
}

#feedback {
    font-weight: bold;
    margin-top: 8px;
}

@media (max-width: 480px) {
    .container {
        width: 95%;
        padding: 15px;
    }

    .game-area {
        height: 200px;
    }

    .instruction, .stats, #result-container {
        font-size: 16px;
    }
}